package com.eonmind.common.contract.enums.vip;

import lombok.AllArgsConstructor;
import lombok.Getter;

import java.util.Objects;

/**
  * @Author 逆飞的流星
  * @Description 消费类型枚举
  * @Date 16:33 2025/5/5
  **/

@Getter
@AllArgsConstructor
public enum ConsumptionTypeEnum {
    AI_CHAT(0, "AI聊天"),
    AI_DRAW(1, "AI绘画"),
    AI_VIDEO(2,"AI视频");

    public static String getDescByCode(Integer code) {
        for (ConsumptionTypeEnum consumptionTypeEnum: values()) {
            if (Objects.equals(code, consumptionTypeEnum.getCode())) {
                return consumptionTypeEnum.getDesc();
            }
        }
        return "";
    }

    private final Integer code;
    private final String desc;
}
